<!--suppress ALL -->
<include file="./Template/header.html" />

<link rel="stylesheet" type="text/css" href="/Template/css/exam.css">
<script type="text/javascript" src="/Template/js/amazeui.js"></script>
<script type="text/javascript">


    $(function() {

        //初始化页面配置
        initPage("足踝检测评估");

//        $("#pronationCheck input[type='checkbox']").click(function() {
//            lert(113);
//            if($(this).is(":checked")){
//                alert(123);
//            }
//        });
        $("textarea").keypress(function(e) {
            if (e.which == 13) {
                return false;
            }
        });
        var app = new Vue({
            el: '#container',
            data: {
            },
            methods: {
                cancel: function() {
                    window.location.href = "/wechat/workorder/index/id/{$workorderId}";
                },
                save: function() {
                    var examBasicId = $("input[name=examBasicId]").val();
                    var workorderId = $("input[name=workorderId]").val();
                    var mobility = $("select[name=mobility]").val();
                    var side = $("select[name=side]").val();
                    var forefoot = $("select[name=forefoot]").val();
                    var heel = $("select[name=heel]").val();
                    var gait = $("select[name=gait]").val();
                    var pronation = ",";
                    $("#pronationCheck input[type='checkbox']").each(function(){
                        if($(this).is(":checked")){
                            pronation += $(this).val() + ",";
                        }
                    });
                    var supination = ",";
                    $("#supinationCheck input[type='checkbox']").each(function(){
                        if($(this).is(":checked")){
                            supination += $(this).val() + ",";
                        }
                    });
                    var heightHeel = $("input[name=heightHeel]").val();
                    var shoeSize = $("input[name=shoeSize]").val();
                    var muscle0 = $("select[name=muscle0]").val();
                    var muscle1 = $("select[name=muscle1]").val();
                    var muscle2 = $("select[name=muscle2]").val();
                    var muscle3 = $("select[name=muscle3]").val();
                    var muscle4 = $("select[name=muscle4]").val();
                    var muscle5 = $("select[name=muscle5]").val();
                    var muscle6 = $("select[name=muscle6]").val();
                    var muscle7 = $("select[name=muscle7]").val();
                    var muscle8 = $("select[name=muscle8]").val();
                    var muscle9 = $("select[name=muscle9]").val();
                    var hip0 = $("select[name=hip0]").val();
                    var hip1 = $("select[name=hip1]").val();
                    var hip2 = $("select[name=hip2]").val();
                    var hip3 = $("select[name=hip3]").val();
                    var hip4 = $("select[name=hip4]").val();
                    var hip5 = $("select[name=hip5]").val();
                    var knee0 = $("select[name=knee0]").val();
                    var knee1 = $("select[name=knee1]").val();
                    var ankle0 = $("select[name=ankle0]").val();
                    var ankle1 = $("select[name=ankle1]").val();
                    var ankle2 = $("select[name=ankle2]").val();
                    var ankle3 = $("select[name=ankle3]").val();
                    var remark = $("textarea[name=remark]").val();
                    var dysfunction = $("textarea[name=dysfunction]").val();
                    var hipweak0 = $("input[name=hipweak0]").is(":checked")? "1":"";
                    var hipweak1 = $("input[name=hipweak1]").is(":checked")? "1":"";
                    var hipweak2 = $("input[name=hipweak2]").is(":checked")? "1":"";
                    var hipweak3 = $("input[name=hipweak3]").is(":checked")? "1":"";
                    var hipweak4 = $("input[name=hipweak4]").is(":checked")? "1":"";
                    var hipweak5 = $("input[name=hipweak5]").is(":checked")? "1":""
                    var kneeweak0 = $("input[name=kneeweak0]").is(":checked")? "1":"";
                    var kneeweak1 = $("input[name=kneeweak1]").is(":checked")? "1":"";
                    var ankleweak0 = $("input[name=ankleweak0]").is(":checked")? "1":"";
                    var ankleweak1 = $("input[name=ankleweak1]").is(":checked")? "1":"";
                    var ankleweak2 = $("input[name=ankleweak2]").is(":checked")? "1":"";
                    var ankleweak3 = $("input[name=ankleweak3]").is(":checked")? "1":"";

                        var completed = "1";
                    if(isNullOrEmpty(mobility
                            && side
                            && forefoot
                            && heel
                            && gait
                            && heightHeel
                            && shoeSize
                            && muscle0
                            && muscle1
                            && muscle2
                            && muscle3
                            && muscle4
                            && muscle5
                            && muscle6
                            && muscle7
                            && muscle8
                            && muscle9
                            && hip0
                            && hip1
                            && hip2
                            && hip3
                            && hip4
                            && hip5
                            && knee0
                            && knee1
                            && ankle0
                            && ankle1
                            && ankle2
                            && ankle3
//                            && remark
//                            && dysfunction
                        )) {
                        completed = "-1";
                    }
//                    if((pronation == ",") &&
//                        (supination == ",")) {
//                        completed = "-1";
//                    }
                    if((pronation != ",") &&
                        (supination != ",")) {
                        alert("【旋前、旋后】只能选择一种");
                        $("select[name=side]").focus();
                        return;
                    }

                    $.ajax({
                        url:"/wechat/workorder/examBasicPost",
                        type:"post",
                        data:{
                            examBasicId: examBasicId,
                            workorderId: workorderId,
                            mobility: mobility,
                            side: side,
                            forefoot: forefoot,
                            heel: heel,
                            gait: gait,
                            pronation: pronation,
                            supination: supination,
                            heightHeel: heightHeel,
                            shoeSize: shoeSize,
                            muscle0:muscle0,
                            muscle1:muscle1,
                            muscle2:muscle2,
                            muscle3:muscle3,
                            muscle4:muscle4,
                            muscle5:muscle5,
                            muscle6:muscle6,
                            muscle7:muscle7,
                            muscle8:muscle8,
                            muscle9:muscle9,
                            hip0:hip0,
                            hip1:hip1,
                            hip2:hip2,
                            hip3:hip3,
                            hip4:hip4,
                            hip5:hip5,
                            knee0:knee0,
                            knee1:knee1,
                            ankle0:ankle0,
                            ankle1:ankle1,
                            ankle2:ankle2,
                            ankle3:ankle3,
                            remark:remark,
                            dysfunction:dysfunction,
                            hipweak0:hipweak0,
                            hipweak1:hipweak1,
                            hipweak2:hipweak2,
                            hipweak3:hipweak3,
                            hipweak4:hipweak4,
                            hipweak5:hipweak5,
                            kneeweak0:kneeweak0,
                            kneeweak1:kneeweak1,
                            ankleweak0:ankleweak0,
                            ankleweak1:ankleweak1,
                            ankleweak2:ankleweak2,
                            ankleweak3:ankleweak3,
                            completed:completed,
                        },
                        dataType:"JSON",
                        beforeSend:function(){
                            $("#loadingToast").show();
                        },
                        complete:function(){
                            $('#loadingToast').hide();
                        },
                        success:function(data){
                            if(data.code == 200) {
//                                alert(data.alert);
                                alert("保存成功");
                                window.location.href = "/wechat/workorder/index/id/{$workorderId}";
                            }
                        },
                    })

                }
            }
        })
        $(".item select").change(function() {
            var value = $(this).find("option:selected").text();
            $(this).prev().val(value);
        });
    })

</script>

<div class="container" id="container">
    <div class="hint-info">
        <span class="update_time">{$formDict.update_time}：{$examBasic.update_time}</span>
        <span class="employee_name">{$formDict.update_name}：{$employeeName}</span>
    </div>
    <div class="edit-info">
        <div class="edit-content" >
            <input type="text" style="display: none;" name="workorderId" value="{$workorderId}">
            <input type="text" style="display: none;" name="examBasicId" value="{$examBasicId}">
            <div class="item">
                <span>行动能力：</span>
                <php>
                    $mobilityName = $formDict["mobility_".$examBasic["mobility"]];
                </php>
                <input id="mobility" type="text" value="{$mobilityName}" readonly placeholder="请选择">
                <select name="mobility">
                    <option value="{$examBasic.mobility}">请选择</option>
                    {:getFormDictSelectOptionHtml($examBasic['mobility'],'mobility','exam_basic',0)}
                </select>
                <img class="icon-right" src="/Template/images/icon-right.png" alt="">
            </div>
            <div class="item">
                <span>位置：</span>
                <php>
                    $sideName = $formDict["side_".$examBasic["side"]];
                </php>
                <input id="side" type="text" value="{$sideName}" readonly placeholder="请选择">
                <select name="side">
                    <option value="{$examBasic.side}">请选择</option>
                    {:getFormDictSelectOptionHtml($examBasic['side'],'side','exam_basic',0)}
                </select>
                <img class="icon-right" src="/Template/images/icon-right.png" alt="">
            </div>
            <div class="item" id="pronationCheck">
                <span>旋前：</span>
                <div class="checkline_first">
                    <php>
                        $pronationArr=explode(',', $examBasic["pronation"]);
                        foreach ($pronationArr as $value){
                        $pronation[$value] = "checked";
                        }
                    </php>
                    <input class="checkFirst" value="0" type="checkbox"  {$pronation[0]}>{$formDict.pronation_0}
                    <input class="checkOther" value="1" type="checkbox"  {$pronation[1]}>{$formDict.pronation_1}
                    <input class="checkOther" value="2" type="checkbox"  {$pronation[2]}>{$formDict.pronation_2}
                </div>
                <!--<div class="checkline">-->
                    <!--<input class="checkFirst" value="2" type="checkbox" name="mobility2[]" {$mobility[2]}>{$formDict.mobility_2}-->
                <!--</div>-->
                <!--<div class="checkline">-->
                    <!--<input class="checkFirst" value="3" type="checkbox" name="mobility3[]" {$mobility[3]}>{$formDict.mobility_3}-->
                <!--</div>-->
                <!--<div class="checkline">-->
                    <!--<input class="checkFirst" value="4" type="checkbox" name="mobility4[]" {$mobility[4]}>{$formDict.mobility_4}-->
                    <!--<input class="checkOther" value="5" type="checkbox" name="mobility5[]" {$mobility[5]}>{$formDict.mobility_5}-->
                <!--</div>-->
            </div>
            <div class="item" id="supinationCheck">
                <span>旋后：</span>
                <div class="checkline_first">
                    <php>
                        $supinationArr=explode(',', $examBasic["supination"]);
                        foreach ($supinationArr as $value){
                        $supination[$value] = "checked";
                        }
                    </php>
                    <input class="checkFirst" value="0" type="checkbox"  {$supination[0]}>{$formDict.supination_0}
                    <input class="checkOther" value="1" type="checkbox"  {$supination[1]}>{$formDict.supination_1}
                    <input class="checkOther" value="2" type="checkbox"  {$supination[2]}>{$formDict.supination_2}
                </div>
            </div>
            <div class="item">
                <span>前足：</span>
                <php>
                    $forefootName = $formDict["forefoot_".$examBasic["forefoot"]];
                </php>
                <input id="forefoot" type="text" value="{$forefootName}" readonly placeholder="请选择">
                <select name="forefoot">
                    <option value="{$examBasic.forefoot}">请选择</option>
                    {:getFormDictSelectOptionHtml($examBasic['forefoot'],'forefoot','exam_basic',0)}
                </select>
                <img class="icon-right" src="/Template/images/icon-right.png" alt="">
            </div>
            <div class="item">
                <span>足跟：</span>
                <php>
                    $heelName = $formDict["heel_".$examBasic["heel"]];
                </php>
                <input id="heel" type="text" value="{$heelName}" readonly placeholder="请选择">
                <select name="heel">
                    <option value="{$examBasic.heel}">请选择</option>
                    {:getFormDictSelectOptionHtml($examBasic['heel'],'heel','exam_basic',0)}
                </select>
                <img class="icon-right" src="/Template/images/icon-right.png" alt="">
            </div>
            <div class="item"><span>{$formDict.height_heel}：</span><input name="heightHeel" type="text" value="{$examBasic.height_heel}" placeholder="请输入数据(mm)"></div>
            <div class="item"><span>{$formDict.shoe_size}:</span><input name="shoeSize" type="text" value="{$examBasic.shoe_size}" placeholder="请输入数据"></div>
            <div class="item">
                <span>步态：</span>
                <php>
                    $gaitName = $formDict["gait_".$examBasic["gait"]];
                </php>
                <input id="gait" type="text" value="{$gaitName}" readonly placeholder="请选择">
                <select name="gait">
                    <option value="{$examBasic.gait}">请选择</option>
                    {:getFormDictSelectOptionHtml($examBasic['gait'],'gait','exam_basic',0)}
                </select>
                <img class="icon-right" src="/Template/images/icon-right.png" alt="">
            </div>
            <div class="item" style="border-bottom:0px">
                <span class="itemTitle" style="margin-left: 30%">—— 肌张力 ——</span><br/>
            </div>
            <div class="item" style="border-bottom:0px">
                <span>{$formDict.muscle_0}：</span>
                <php>
                    $muscle0Name = $formDict["muscular_tension_".$examBasic["muscle_0"]];
                </php>
                <input id="muscle0" type="text" value="{$muscle0Name}" readonly placeholder="请选择">
                <select name="muscle0">
                    <option value="{$examBasic.muscle_0}">请选择</option>
                    {:getFormDictSelectOptionHtml($examBasic['muscle_0'],'muscular_tension','exam_basic',0)}
                </select>
                <img class="icon-right" src="/Template/images/icon-right.png" alt="">
            </div>
            <div class="item" style="border-bottom:0px">
                <span>{$formDict.muscle_1}：</span>
                <php>
                    $muscle1Name = $formDict["muscular_tension_".$examBasic["muscle_1"]];
                </php>
                <input id="muscle1" type="text" value="{$muscle1Name}" readonly placeholder="请选择">
                <select name="muscle1">
                    <option value="{$examBasic.muscle_1}">请选择</option>
                    {:getFormDictSelectOptionHtml($examBasic['muscle_1'],'muscular_tension','exam_basic',0)}
                </select>
                <img class="icon-right" src="/Template/images/icon-right.png" alt="">
            </div>
            <div class="item" style="border-bottom:0px">
                <span>{$formDict.muscle_2}：</span>
                <php>
                    $muscle2Name = $formDict["muscular_tension_".$examBasic["muscle_2"]];
                </php>
                <input id="muscle2" type="text" value="{$muscle2Name}" readonly placeholder="请选择">
                <select name="muscle2">
                    <option value="{$examBasic.muscle_2}">请选择</option>
                    {:getFormDictSelectOptionHtml($examBasic['muscle_2'],'muscular_tension','exam_basic',0)}
                </select>
                <img class="icon-right" src="/Template/images/icon-right.png" alt="">
            </div>
            <div class="item" style="border-bottom:0px">
                <span>{$formDict.muscle_3}：</span>
                <php>
                    $muscle3Name = $formDict["muscular_tension_".$examBasic["muscle_3"]];
                </php>
                <input id="muscle3" type="text" value="{$muscle3Name}" readonly placeholder="请选择">
                <select name="muscle3">
                    <option value="{$examBasic.muscle_3}">请选择</option>
                    {:getFormDictSelectOptionHtml($examBasic['muscle_3'],'muscular_tension','exam_basic',0)}
                </select>
                <img class="icon-right" src="/Template/images/icon-right.png" alt="">
            </div>
            <div class="item" style="border-bottom:0px">
                <span>{$formDict.muscle_4}：</span>
                <php>
                    $muscle4Name = $formDict["muscular_tension_".$examBasic["muscle_4"]];
                </php>
                <input id="muscle4" type="text" value="{$muscle4Name}" readonly placeholder="请选择">
                <select name="muscle4">
                    <option value="{$examBasic.muscle_4}">请选择</option>
                    {:getFormDictSelectOptionHtml($examBasic['muscle_4'],'muscular_tension','exam_basic',0)}
                </select>
                <img class="icon-right" src="/Template/images/icon-right.png" alt="">
            </div>
            <div class="item" style="border-bottom:0px">
                <span>{$formDict.muscle_5}：</span>
                <php>
                    $muscle5Name = $formDict["muscular_tension_".$examBasic["muscle_5"]];
                </php>
                <input id="muscle5" type="text" value="{$muscle5Name}" readonly placeholder="请选择">
                <select name="muscle5">
                    <option value="{$examBasic.muscle_5}">请选择</option>
                    {:getFormDictSelectOptionHtml($examBasic['muscle_5'],'muscular_tension','exam_basic',0)}
                </select>
                <img class="icon-right" src="/Template/images/icon-right.png" alt="">
            </div>
            <div class="item" style="border-bottom:0px">
                <span>{$formDict.muscle_6}：</span>
                <php>
                    $muscle6Name = $formDict["muscular_tension_".$examBasic["muscle_6"]];
                </php>
                <input id="muscle6" type="text" value="{$muscle6Name}" readonly placeholder="请选择">
                <select name="muscle6">
                    <option value="{$examBasic.muscle_6}">请选择</option>
                    {:getFormDictSelectOptionHtml($examBasic['muscle_6'],'muscular_tension','exam_basic',0)}
                </select>
                <img class="icon-right" src="/Template/images/icon-right.png" alt="">
            </div>
            <div class="item" style="border-bottom:0px">
                <span>{$formDict.muscle_7}：</span>
                <php>
                    $muscle7Name = $formDict["muscular_tension_".$examBasic["muscle_7"]];
                </php>
                <input id="muscle7" type="text" value="{$muscle7Name}" readonly placeholder="请选择">
                <select name="muscle7">
                    <option value="{$examBasic.muscle_7}">请选择</option>
                    {:getFormDictSelectOptionHtml($examBasic['muscle_7'],'muscular_tension','exam_basic',0)}
                </select>
                <img class="icon-right" src="/Template/images/icon-right.png" alt="">
            </div>
            <div class="item" style="border-bottom:0px">
                <span>{$formDict.muscle_8}：</span>
                <php>
                    $muscle8Name = $formDict["muscular_tension_".$examBasic["muscle_8"]];
                </php>
                <input id="muscle8" type="text" value="{$muscle8Name}" readonly placeholder="请选择">
                <select name="muscle8">
                    <option value="{$examBasic.muscle_8}">请选择</option>
                    {:getFormDictSelectOptionHtml($examBasic['muscle_8'],'muscular_tension','exam_basic',0)}
                </select>
                <img class="icon-right" src="/Template/images/icon-right.png" alt="">
            </div>
            <div class="item">
                <span>{$formDict.muscle_9}：</span>
                <php>
                    $muscle9Name = $formDict["muscular_tension_".$examBasic["muscle_9"]];
                </php>
                <input id="muscle9" type="text" value="{$muscle9Name}" readonly placeholder="请选择">
                <select name="muscle9">
                    <option value="{$examBasic.muscle_9}">请选择</option>
                    {:getFormDictSelectOptionHtml($examBasic['muscle_9'],'muscular_tension','exam_basic',0)}
                </select>
                <img class="icon-right" src="/Template/images/icon-right.png" alt="">
            </div>
            <div class="item" style="border-bottom:0px">
                <span class="itemTitle">—— 髋关节活动度 ——</span><br/>
            </div>
            <div class="item" style="border-bottom:0px">
                <php>
                    $hipweak0_checked=($examBasic["hipweak_0"] == 1)?"checked":"";
                </php>
                <span>{$formDict.hip_0}：   ( <input name="hipweak0" type="checkbox" {$hipweak0_checked}> 肌力弱）</span>
                <php>
                    $hip0Name = $formDict["joint_activity_".$examBasic["hip_0"]];
                </php>
                <input id="hip0" type="text" value="{$hip0Name}" readonly placeholder="请选择">
                <select name="hip0">
                    <option value="{$examBasic.hip_0}">请选择</option>
                    {:getFormDictSelectOptionHtml($examBasic['hip_0'],'joint_activity','exam_basic',0)}
                </select>
                <img class="icon-right" src="/Template/images/icon-right.png" alt="">
            </div>
            <div class="item" style="border-bottom:0px">
                <php>
                    $hipweak1_checked=($examBasic["hipweak_1"] == 1)?"checked":"";
                </php>
                <span>{$formDict.hip_1}：   ( <input name="hipweak1" type="checkbox" {$hipweak1_checked}> 肌力弱）</span>
                <php>
                    $hip1Name = $formDict["joint_activity_".$examBasic["hip_1"]];
                </php>
                <input id="hip1" type="text" value="{$hip1Name}" readonly placeholder="请选择">
                <select name="hip1">
                    <option value="{$examBasic.hip_1}">请选择</option>
                    {:getFormDictSelectOptionHtml($examBasic['hip_1'],'joint_activity','exam_basic',0)}
                </select>
                <img class="icon-right" src="/Template/images/icon-right.png" alt="">
            </div>
            <div class="item" style="border-bottom:0px">
                <php>
                    $hipweak2_checked=($examBasic["hipweak_2"] == 1)?"checked":"";
                </php>
                <span>{$formDict.hip_2}：   ( <input name="hipweak2" type="checkbox" {$hipweak2_checked}> 肌力弱）</span>
                <php>
                    $hip2Name = $formDict["joint_activity_".$examBasic["hip_2"]];
                </php>
                <input id="hip2" type="text" value="{$hip2Name}" readonly placeholder="请选择">
                <select name="hip2">
                    <option value="{$examBasic.hip_2}">请选择</option>
                    {:getFormDictSelectOptionHtml($examBasic['hip_2'],'joint_activity','exam_basic',0)}
                </select>
                <img class="icon-right" src="/Template/images/icon-right.png" alt="">
            </div>
            <div class="item" style="border-bottom:0px">
                <php>
                    $hipweak3_checked=($examBasic["hipweak_3"] == 1)?"checked":"";
                </php>
                <span>{$formDict.hip_3}：   ( <input name="hipweak3" type="checkbox" {$hipweak3_checked}> 肌力弱）</span>
                <php>
                    $hip3Name = $formDict["joint_activity_".$examBasic["hip_3"]];
                </php>
                <input id="hip3" type="text" value="{$hip3Name}" readonly placeholder="请选择">
                <select name="hip3">
                    <option value="{$examBasic.hip_3}">请选择</option>
                    {:getFormDictSelectOptionHtml($examBasic['hip_3'],'joint_activity','exam_basic',0)}
                </select>
                <img class="icon-right" src="/Template/images/icon-right.png" alt="">
            </div>
            <div class="item" style="border-bottom:0px">
                <php>
                    $hipweak4_checked=($examBasic["hipweak_4"] == 1)?"checked":"";
                </php>
                <span>{$formDict.hip_4}：   ( <input name="hipweak4" type="checkbox" {$hipweak4_checked}> 肌力弱）</span>
                <php>
                    $hip4Name = $formDict["joint_activity_".$examBasic["hip_4"]];
                </php>
                <input id="hip4" type="text" value="{$hip4Name}" readonly placeholder="请选择">
                <select name="hip4">
                    <option value="{$examBasic.hip_4}">请选择</option>
                    {:getFormDictSelectOptionHtml($examBasic['hip_4'],'joint_activity','exam_basic',0)}
                </select>
                <img class="icon-right" src="/Template/images/icon-right.png" alt="">
            </div>
            <div class="item">
                <php>
                    $hipweak5_checked=($examBasic["hipweak_5"] == 1)?"checked":"";
                </php>
                <span>{$formDict.hip_5}：   ( <input name="hipweak5" type="checkbox" {$hipweak5_checked}> 肌力弱）</span>
                <php>
                    $hip5Name = $formDict["joint_activity_".$examBasic["hip_5"]];
                </php>
                <input id="hip5" type="text" value="{$hip5Name}" readonly placeholder="请选择">
                <select name="hip5">
                    <option value="{$examBasic.hip_5}">请选择</option>
                    {:getFormDictSelectOptionHtml($examBasic['hip_5'],'joint_activity','exam_basic',0)}
                </select>
                <img class="icon-right" src="/Template/images/icon-right.png" alt="">
            </div>
            <div class="item" style="border-bottom:0px">
                <span class="itemTitle">—— 膝关节活动度 ——</span><br/>
            </div>
            <div class="item" style="border-bottom:0px">
                <php>
                    $kneeweak0_checked=($examBasic["kneeweak_0"] == 1)?"checked":"";
                </php>
                <span>{$formDict.knee_0}：   ( <input name="kneeweak0" type="checkbox" {$kneeweak0_checked}> 肌力弱）</span>
                <php>
                    $knee0Name = $formDict["joint_activity_".$examBasic["knee_0"]];
                </php>
                <input id="knee0" type="text" value="{$knee0Name}" readonly placeholder="请选择">
                <select name="knee0">
                    <option value="{$examBasic.knee_0}">请选择</option>
                    {:getFormDictSelectOptionHtml($examBasic['knee_0'],'joint_activity','exam_basic',0)}
                </select>
                <img class="icon-right" src="/Template/images/icon-right.png" alt="">
            </div>
            <div class="item">
                <php>
                    $kneeweak1_checked=($examBasic["kneeweak_1"] == 1)?"checked":"";
                </php>
                <span>{$formDict.knee_1}：   ( <input name="kneeweak1" type="checkbox" {$kneeweak1_checked}> 肌力弱）</span>
                <php>
                    $knee1Name = $formDict["joint_activity_".$examBasic["knee_1"]];
                </php>
                <input id="knee1" type="text" value="{$knee1Name}" readonly placeholder="请选择">
                <select name="knee1">
                    <option value="{$examBasic.knee_1}">请选择</option>
                    {:getFormDictSelectOptionHtml($examBasic['knee_1'],'joint_activity','exam_basic',0)}
                </select>
                <img class="icon-right" src="/Template/images/icon-right.png" alt="">
            </div>
            <div class="item" style="border-bottom:0px">
                <span class="itemTitle">—— 踝关节活动度 ——</span><br/>
            </div>
            <div class="item" style="border-bottom:0px">
                <php>
                    $ankleweak0_checked=($examBasic["ankleweak_0"] == 1)?"checked":"";
                </php>
                <span>{$formDict.hip_0}：   ( <input name="ankleweak0" type="checkbox" {$ankleweak0_checked}> 肌力弱）</span>
                <php>
                    $ankle0Name = $formDict["joint_activity_".$examBasic["ankle_0"]];
                </php>
                <input id="ankle0" type="text" value="{$ankle0Name}" readonly placeholder="请选择">
                <select name="ankle0">
                    <option value="{$examBasic.ankle_0}">请选择</option>
                    {:getFormDictSelectOptionHtml($examBasic['ankle_0'],'joint_activity','exam_basic',0)}
                </select>
                <img class="icon-right" src="/Template/images/icon-right.png" alt="">
            </div>
            <div class="item" style="border-bottom:0px">
                <php>
                    $ankleweak1_checked=($examBasic["ankleweak_1"] == 1)?"checked":"";
                </php>
                <span>{$formDict.ankle_1}：   ( <input name="ankleweak1" type="checkbox" {$ankleweak1_checked}> 肌力弱）</span>
                <php>
                    $ankle1Name = $formDict["joint_activity_".$examBasic["ankle_1"]];
                </php>
                <input id="ankle1" type="text" value="{$ankle1Name}" readonly placeholder="请选择">
                <select name="ankle1">
                    <option value="{$examBasic.ankle_1}">请选择</option>
                    {:getFormDictSelectOptionHtml($examBasic['ankle_1'],'joint_activity','exam_basic',0)}
                </select>
                <img class="icon-right" src="/Template/images/icon-right.png" alt="">
            </div>
            <div class="item" style="border-bottom:0px">
                <php>
                    $ankleweak2_checked=($examBasic["ankleweak_2"] == 1)?"checked":"";
                </php>
                <span>{$formDict.ankle_2}：   ( <input name="ankleweak2" type="checkbox" {$ankleweak2_checked}> 肌力弱）</span>
                <php>
                    $ankle2Name = $formDict["joint_activity_".$examBasic["ankle_2"]];
                </php>
                <input id="ankle2" type="text" value="{$ankle2Name}" readonly placeholder="请选择">
                <select name="ankle2">
                    <option value="{$examBasic.ankle_2}">请选择</option>
                    {:getFormDictSelectOptionHtml($examBasic['ankle_2'],'joint_activity','exam_basic',0)}
                </select>
                <img class="icon-right" src="/Template/images/icon-right.png" alt="">
            </div>
            <div class="item">
                <php>
                    $ankleweak3_checked=($examBasic["ankleweak_3"] == 1)?"checked":"";
                </php>
                <span>{$formDict.ankle_3}：   ( <input name="ankleweak3" type="checkbox" {$ankleweak3_checked}> 肌力弱）</span>
                <php>
                    $ankle3Name = $formDict["joint_activity_".$examBasic["ankle_3"]];
                </php>
                <input id="ankle3" type="text" value="{$ankle3Name}" readonly placeholder="请选择">
                <select name="ankle3">
                    <option value="{$examBasic.ankle_3}">请选择</option>
                    {:getFormDictSelectOptionHtml($examBasic['ankle_3'],'joint_activity','exam_basic',0)}
                </select>
                <img class="icon-right" src="/Template/images/icon-right.png" alt="">
            </div>
            <div class="item">
                <span>医生建议及备注：</span>
                <textarea class="t-area" name="remark" maxlength="80" placeholder="请填写">{$examBasic.remark}</textarea>
            </div>
            <div class="item">
                <span>功能障碍描述：</span>
                <textarea class="t-area" name="dysfunction" maxlength="120" placeholder="请填写">{$examBasic.dysfunction}</textarea>
            </div>
            <div class="line"></div>
        </div>
    </div>
    <div class="operation-btn">
        <div class="cancle-btn" v-on:click="cancel">取消</div>
        <if condition="$workorder['status'] eq '-1' && $workorder['creator_id'] eq $customerId">
           <div class="save-btn" v-on:click="save">保存</div>
        </if>
        <if condition="$workorder['status'] eq '2' && $workorder['examinator_id'] eq $customerId">
            <div class="save-btn" v-on:click="save">保存</div>
        </if>
        <if condition="$workorder['status'] gt '2' && $job[0] eq 100">
            <div class="save-btn" v-on:click="save">保存</div>
        </if>
    </div>

</div>
<include file="./Template/footer.html" />